<?php

use yii\db\Migration;
use yii\db\Schema;

class m170614_021013_ADD_COLUMN_PRICE_ORDER_ID extends Migration
{
    public function up()
    {

         $this->addColumn('{{order_price}}', 'order_id', Schema::TYPE_INTEGER. "(11)  NULL  COMMENT '对应订单编号 ' ");
         $this->addColumn('{{order_price}}', 'type', 	 Schema::TYPE_INTEGER. "(1) DEFAULT  '0' COMMENT '附加费类型' ");
    }

    public function down()
    {
        echo "m170614_021013_ADD_COLUMN_PRICE_ORDER_ID cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
